package com.heima.admin.controller.v1;

import com.heima.apis.wemedia.IWemediaClient;
import com.heima.model.admin.dtos.ConnentDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liudehuan
 * @description
 * @date: 2023-05-01 12:41
 */
@RestController
@RequestMapping("/api/v1/admin")
public class CommonController {

    @Autowired
    private IWemediaClient wemediaClient;

    @PostMapping("/constant/list")
    public ResponseResult getConnentList(@RequestBody ConnentDto dto){
        ResponseResult newsList = wemediaClient.getConnentList(dto);
        return newsList;
    }
}
